var express = require('express');
var router = express.Router();

router.get('/', function(req, res, next) {
	indexRouter(req, res)
});

module.exports = router;

function defaultRouter(req, res) {
	res.send('this is index.js');
}

function indexRouter(req, res) {
	res.render('home/index', {
		id: 1,
		title: 'Express'
	});
}